using Microsoft.Xna.Framework;

namespace GameFrameworkLibraly.Helpers.GeometryHelpers
{
    class Circle
    {
        public Vector2 Center { get; set; }
        public float Radius { get; set; }
        
        public static bool Intersects(Circle circle1, Circle circle2)
        {
            return circle1.Center.ToPoint().DistanceBetween2Points(circle2.Center.ToPoint()) <circle1.Radius + circle2.Radius;
        }

        public bool Intersects(Circle circle)
        {
            return Intersects(this, circle);
        }
    }
}
